package com.acminds.fotoporter.persistence.entities;

// Generated Jan 14, 2012 10:31:36 AM by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.acminds.fotoporter.persistence.dto.*;

/**
 * FeatureGroup generated by customhbm2java
 */
@MappedSuperclass
public abstract class AbstractFeatureGroup extends
		com.acminds.fotoporter.persistence.BaseDTO implements
		java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Integer featureGroupId;
	private UserInfo userInfo;
	private String featureGroupName;
	private String featureGroupDesc;
	private Integer displayAs;
	private Date createDate;
	private List<Feature> features = new ArrayList<Feature>(0);

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "FEATURE_GROUP_ID", unique = true, nullable = false)
	public Integer getFeatureGroupId() {
		return this.featureGroupId;
	}

	public void setFeatureGroupId(Integer featureGroupId) {
		this.featureGroupId = featureGroupId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CREATED_BY", nullable = false)
	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	@Column(name = "FEATURE_GROUP_NAME", nullable = false, length = 60)
	public String getFeatureGroupName() {
		return this.featureGroupName;
	}

	public void setFeatureGroupName(String featureGroupName) {
		this.featureGroupName = featureGroupName;
	}

	@Column(name = "FEATURE_GROUP_DESC", length = 100)
	public String getFeatureGroupDesc() {
		return this.featureGroupDesc;
	}

	public void setFeatureGroupDesc(String featureGroupDesc) {
		this.featureGroupDesc = featureGroupDesc;
	}

	@Column(name = "DISPLAY_AS")
	public Integer getDisplayAs() {
		return this.displayAs;
	}

	public void setDisplayAs(Integer displayAs) {
		this.displayAs = displayAs;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_DATE", nullable = false, length = 19)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "featureGroup")
	public List<Feature> getFeatures() {
		return this.features;
	}

	public void setFeatures(List<Feature> features) {
		this.features = features;
	}

}
